<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<t:base type="jquery,easyui,tools"/>
<div class="easyui-layout" fit="true" id="main_customer_ques_list">
    <div region="center" style="padding:1px;">
        <t:datagrid name="c_customer_ques_list" title="" actionUrl="cCQuesController.do?datagrid" idField="id"
                    fit="true"
                    queryMode="group">
            <t:dgCol title="主键" field="id" hidden="true"></t:dgCol>
            <t:dgCol title="帐号" field="customerEntity.phone" width="1" query="true"></t:dgCol>
            <t:dgCol title="用户名称" field="customerEntity.realname" width="1" query="true"></t:dgCol>
            <t:dgCol title="用户昵称" field="customerEntity.nickname" width="1" query="true"></t:dgCol>
            <t:dgCol title="测试量表id" field="questEntity.id" width="1" hidden="true"></t:dgCol>
            <t:dgCol title="测试量表" field="questEntity.name" width="1" query="true"></t:dgCol>
            <t:dgCol title="测试标识" field="submitTime" width="1" query="true"></t:dgCol>
            <t:dgCol title="创建时间" formatter="yyyy-MM-dd hh:mm:ss" field="createTime"></t:dgCol>

            <t:dgCol title="common.operation" field="opt" width="2"></t:dgCol>
            <t:dgFunOpt funname="showOption(id,customerEntity.phone)" title="分析结果"></t:dgFunOpt>
            <t:dgFunOpt funname="showQDetail(id,customerEntity.phone)" title="测评详情"></t:dgFunOpt>
        </t:datagrid>
    </div>
</div>

<script type="text/javascript">
    $(function () {
        var li_east = 0;
    });

    function showOption(id, name) {
        var url = "cqDimResultController.do?index&cqid=" + id;
        createdetailwindow('分析【' + name + '】', url, window.innerWidth, window.innerHeight);
    }


    function showQDetail(id, name) {
        var url = "cqDimResultController.do?index_detail&cqid=" + id;
        createdetailwindow('分析【' + name + '】', url, window.innerWidth, window.innerHeight);
    }
</script>
